﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sl.Upload.Models
{
    /// <summary>
    /// 文件信息类
    /// </summary>
    public class FileInfoModel
    {
        /// <summary>
        /// 文件流
        /// </summary>
        public Stream StreamInfo { get; set; }
        /// <summary>
        /// 文件字节
        /// </summary>
        public byte[] FileByte { get; set; }
        /// <summary>
        /// 保存路径
        /// </summary>
        public string SavePath { get; set; }
        /// <summary>
        /// Url路径
        /// </summary>
        public string UrlPath { get; set; }
        /// <summary>
        /// 原始文件名
        /// </summary>
        public string OriginalName { get; set; }
        /// <summary>
        /// 上传后的文件名
        /// </summary>
        public string UploadName { get; set; }
        /// <summary>
        /// 文件后缀
        /// </summary>
        public string FileSuffix { get; set; }
        /// <summary>
        /// 文件长度
        /// </summary>
        public double ContentLength { get; set; }
        /// <summary>
        /// 生成文件组
        /// </summary>
        public List<CutInfo> CutItem { get; set; }
        /// <summary>
        /// 文件Guid
        /// </summary>
        public string Guid { get; set; }
        /// <summary>
        /// 分片上传总数
        /// </summary>
        public virtual int Chunks { get; set; }
        /// <summary>
        /// 当前分片数
        /// </summary>
        public virtual int Chunk { get; set; }
    }
}
